package com.stock.service.impl;

import com.stock.dao.StockDao;
import com.stock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService {

    @Autowired
    private StockDao stockDao;

    @Override
    public int reduction(long productId, int count) {

        int result = stockDao.reduction(productId,count);
        int i = 10 / 0;
        return result;
    }
}
